 class logic {
	// main方法
	public static void main(String[] args){
		// 输出语句
		// System.out.println("Hello Java!");
		boolean a = true;
		boolean b = false;
		System.out.println(a & b);
		System.out.println(a && b);
		System.out.println(a | b);
		System.out.println(a || b);
		System.out.println(!a & b);
		System.out.println(a & !b);
		System.out.println(a ^ b);


	}
}
